.events-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.events-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.event-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

.event-content {
  padding: 12px;
  height: 70%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-title {
  width: 250px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  font-weight: 500;
  overflow: hidden;
}
.up-arrow {
  width: 50px;
  height: 30px;
  font-size: 20px;
  color: rgb(255, 189, 33);
  text-align: center;
  margin-top: -5px;
}
.event-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #999;
  font-size: 12px;
}

.event-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-duration {
  display: flex;
  align-items: center;
  gap: 4px;
}

.time-icon {
  font-size: 14px;
}

/* 添加淡入淡出效果 */
.event-item {
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.event-item.active {
  opacity: 1;
}

/* 添加左侧蓝色指示条 */
.event-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 40%;
  transform: translateY(-50%);
  width: 4px;
  height: 50%;
  border-radius: 2px;
  background: linear-gradient(to bottom, #4080ff, #1677ff);
}

/* 悬停效果 */
.event-item:hover {
  background: #f8f9fa;
  background: #f8f9fa;
  transition: background-color 0.3s ease;
}
/* 导航按钮样式 */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-button:hover {
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nav-button.prev {
  left: 10px;
}

.nav-button.next {
  right: 10px;
}

/* 滑动动画 */
.slide-next {
  animation: slideNext 0.3s ease-in-out;
}

.slide-prev {
  animation: slidePrev 0.3s ease-in-out;
}

@keyframes slideNext {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slidePrev {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
